package com.serie402.common.delegate;

import com.kiss.fw.delegate.AbstractDelegate;
import com.kiss.fw.exceptions.BusinessException;
import com.serie402.common.dto.AuthorDTO;

public class AuthorDelegate extends AbstractDelegate {
	private AuthorDelegate() {
	}
	
	/**
	 * Creates the author specified.
	 * 
	 * @param AuthorDTO _dto
	 * @throws BusinessException
	 */
	public static void create(AuthorDTO _dto) throws BusinessException {
		executeCommand("CreateAuthor", _dto);
	}
	
	/**
	 * Retrieves the author specified.
	 * 
	 * @param AuthorDTO _dto
	 * @throws BusinessException
	 */
	public static void read(AuthorDTO _dto) throws BusinessException {
		executeCommand("ReadAuthor", _dto);
	}
	
	/**
	 * Updates the author specified.
	 * 
	 * @param AuthorDTO _dto
	 * @throws BusinessException
	 */
	public static void update(AuthorDTO _dto) throws BusinessException {
		executeCommand("UpdateAuthor", _dto);
	}
	
	/**
	 * Deletes the author specified.
	 * 
	 * @param AuthorDTO _dto
	 * @throws BusinessException
	 */
	public static void delete(AuthorDTO _dto) throws BusinessException {
		executeCommand("DeleteAuthor", _dto);
	}
	
	/**
	 * Searches for the specified author.
	 * 
	 * @param AuthorDTO _dto
	 * @throws BusinessException
	 */
	public static void search(AuthorDTO _dto) throws BusinessException {
		executeCommand("SearchAuthors", _dto);
	}
}